package com.logistics.map.entity.model;

import com.logistics.utils.bean.SaveBasic;
import lombok.Data;
import java.math.BigDecimal;

@Data
public class MapComponentsSave extends SaveBasic {

    private Integer id;
    private Integer mapId;
    private String clazz;
    private String color;
    private String uuid;
    private String label;
    private String size;
    private String type;
    private String locationArea;
    private String x;
    private String y;
    private String routeCode;
    private Integer containerId;
    private String agvType;
    private String remark;
    private String workshop;
    private String location;
    private String deviceId;
    private String locationWcCode;
    private Boolean locationLock;
    private Integer currentStratum;
    private BigDecimal locationHeight;
    private String zone;
    private String relayWcCode;
    private String containerType;
    private String createDepCode;
    private String creator;
    private String createTime;
    private String updater;
    private String updateTime;
    //lgs_qrcode name
    private String name;

    public static MapComponentsSave build(MapComponentsSave save, Integer mapId, String clazz, String uuid, String workshop, Boolean locationLock, String color){
        save.setMapId(mapId);
        save.setClazz(clazz);
        save.setUuid(uuid);
        save.setWorkshop(workshop);
        save.setLocationLock(locationLock);
        save.setColor(color);
        return save;
    }
}
